/*
 * Wire
 * Copyright (C) 2018 Wire Swiss GmbH
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 *
 */

full-search {
  display: inline-block;
  width: 624px + 72px;
}

.full-search-header {
  align-items: center;
  display: flex;
  height: 40px;
  margin-bottom: 16px;
}

.full-search-header-icon {
  color: @graphite;
  text-align: center;
  width: @conversation-message-sender-width;
  flex: 0 0 auto;
}

.full-search-header-input {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 1px solid @seperator-color;

  > input {
    .reset-textarea;
    background-color: transparent;
    width: 100%;
    height: 24px;
    line-height: 24px;

    &::placeholder {
      .label-xs;
      color: fade(@graphite, 48%);
      padding-left: 8px;
      height: 24px;
      line-height: 24px;
    }
  }
}

.full-search-item {
  align-items: center;
  display: flex;
  height: 56px;
  position: relative;
  cursor: pointer;

  &::after {
    background-color: @seperator-color;
    bottom: 0;
    content: '';
    height: 1px;
    left: @conversation-message-sender-width;
    position: absolute;
    right: 0;
  }
}

.full-search-item-avatar {
  .flex-center;
  color: @graphite;
  width: @conversation-message-sender-width;
  flex: 0 0 auto;
}

.full-search-item-content {
  overflow: hidden;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 8px;
}

.full-search-item-content-info {
  .label-nocase-xs;
  color: @graphite;
  line-height: @line-height-sm;
}

.full-search-item-content-text {
  line-height: @line-height-lg;
  white-space: nowrap;
}

.full-search-marked {
  .accent-background-color(24%);
}

.full-search-no-result {
  margin-top: 80px;
  width: 100%;
  text-align: center;
}
